import request from '@/utils/request'

// 查询预存奖励设置列表
export function listPerstoredrewards(query) {
  return request({
    url: '/configuration/perstoredrewards/list',
    method: 'get',
    params: query
  })
}

// 查询预存奖励设置详细
export function getPerstoredrewards(id) {
  return request({
    url: '/configuration/perstoredrewards/' + id,
    method: 'get'
  })
}

// 新增预存奖励设置
export function addPerstoredrewards(data) {
  return request({
    url: '/configuration/perstoredrewards',
    method: 'post',
    data: data
  })
}

// 修改预存奖励设置
export function updatePerstoredrewards(data) {
  return request({
    url: '/configuration/perstoredrewards',
    method: 'put',
    data: data
  })
}

// 删除预存奖励设置
export function delPerstoredrewards(id) {
  return request({
    url: '/configuration/perstoredrewards/' + id,
    method: 'delete'
  })
}
